home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / Telephone Manager 1.1.1 / Install / Development / ISDNToolIntf.h next >
Encoding:
C/C++ Source or Header  |  1993-07-20  |  3.6 KB  |  102 lines  |  [TEXT/MPS ]

  1.  
  2. /************************************************************
  3.  
  4.  ISDNToolIntf.h
  5.  C Interface to the Apple ISDN Telephone Tool
  6.  
  7.  
  8.   Copyright Apple Computer, Inc. 1990-1993
  9.   All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. /* Record and Playback parameter block for TELOtherFunction */
  15.  
  16. #ifndef __ISDNTOOLINTF__
  17. #define __ISDNTOOLINTF__
  18.  
  19. #ifndef __TYPES__
  20. #include <Types.h>
  21. #endif
  22.  
  23. #ifndef __TELEPHONES__
  24. #include <Telephones.h>
  25. #endif
  26.  
  27.  
  28. typedef pascal void (*RPCompletionProc)(struct TELISDNOtherPB *pb);
  29.  
  30. typedef struct TELISDNOtherPB {
  31.     short                csCode;
  32.     Ptr                    bufferPtr;
  33.     long                bufferLength;
  34.     Ptr                    netRecordBufferPtr;
  35.     long                netRecordBufferLength;
  36.     TELCAHandle            hTELCA;
  37.     short                async;
  38.     RPCompletionProc    completionRtn;
  39.     TELErr                result;
  40.     short                reserved0;
  41.     short                reserved1;
  42.     long                reserved2;
  43.     long                reserved3;
  44. } TELISDNOtherPB;
  45.  
  46.  
  47. enum
  48. {
  49.  
  50. /* CSCodes */
  51.     telISDNLocalRecord            = 1,
  52.     telISDNLocalPlayback        = 2,
  53.     telISDNNetworkRecord        = 3,
  54.     telISDNNetworkPlayback        = 4,
  55.     telISDNLocalStop            = 5,
  56.     telISDNNetworkStop            = 6,
  57.     telISDNBeginRPSession        = 7,
  58.     telISDNEndRPSession            = 8,
  59.  
  60. /* Result Codes */
  61.     isdnRPnoError                = 0,        /* no error during RP */
  62.     isdnRPLocalDisconnect        = 1,        /* local user disconnected during RP */
  63.     isdnRPRemoteDisconnect        = 2,        /* remote user disconnected during RP */
  64.     isdnRPLocalStop                = 3,        /* local side stopped local record/playback via TELISDNLocalStop*/
  65.     isdnRPNetworkStop            = 4,        /* local side stopped network record/playback via TELISDNNetworkStop */
  66.     isdnRPLocalInterruption        = 5,        /* local side interrupted network rec/play by picking up phone */
  67.     isdnRPBusy                    = 6,        /* session is in use */
  68.     isdnRPNoLocalSession        = 7,        /* local stop didn't work because no local session was in use */
  69.     isdnRPNoNetworkSession        = 8,        /* network stop didn't work because no network session was in use */
  70.  
  71. /* Error Codes */
  72.     isdnError                    = (-1001),    /* some error resulted in stopping of playback */
  73.     isdnBadBufferLength            = (-1002),    /* bad buffer length specified in bufflen */
  74.     isdnBadNetBufferLength        = (-1003),    /* bad buffer length specified in netRecordBufferLength */
  75.     isdnBadBufferSpecified        = (-1004),    /* bad buffer specified in buffPtr */
  76.     isdnBadNetBufferSpecified    = (-1005),    /* bad buffer specified in netRecordBufferPtr */
  77.     isdnBadcsCode                = (-1006),    /* bad csCode specified */
  78.     isdnCannotLoadLocalRPTask    = (-1007),    /* could not load local Rec/Play task to card */
  79.     isdnCannotLoadNetworkRPTask = (-1008),    /* could not load network Rec/Play task to card */
  80.     isdnCardNotRunning            = (-1009),    /* ISDN card is not running */
  81.     isdnCANotInValidState        = (-1010),    /* CA is not in valid state (active or alerting) for network R/P */
  82.  
  83. /* Error Codes that can be returned in termOtherMsg */
  84.     isdnFailure                    = (-51),    /* board response bad or missing        */
  85.     isdnBadData                    = (-52),    /* invalid message data    sent by tool    */
  86.     isdnNoMemory                = (-53),    /* no buffers available    for tool to card communication    */
  87.     isdnNoCode                    = (-55),    /* isdn card not downloaded                */
  88.     isdnSmallBuffer                = (-57),    /* read buffer too small                */
  89.     isdnLostVFIMsg                = (-58),    /* VFI queue overflow                    */
  90.     isdnBadSlot                    = (-59),    /* selected slot has no card            */
  91.     isdnRestart                    = (-60),    /* isdn code restarted                    */
  92.     isdnBusyVFI                    = (-61),    /* R/P or NR/P in progress                */
  93.     isdnBadVFICmd                = (-62),    /* unrecognized VFI command type        */
  94.     isdnReqExcl                    = (-63),    /* VFI req has exclusive parms            */
  95.     isdnReqUnavailable            = (-64),    /* VFI req unavailable                    */
  96.     isdnReqState                = (-65),    /* VFI req can't be executed now        */
  97.     isdnBadProc                    = (-66)        /* bad receive notify request            */
  98.  
  99. };
  100.  
  101.  
  102. #endif